package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 密码管理对象 grid_account
 *
 * @author ruoyi
 * @date 2022-01-01
 */
public class GridAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Integer userId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 主机名称 */
    @Excel(name = "主机名称")
    private String hostName;

    /** 公告标题 */
    @Excel(name = "设备PORT")
    private Integer hostPort;

    /** 主机IP */
    @Excel(name = "主机IP")
    private String hostIp;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String userPass;

    /** 策略ID */
    @Excel(name = "策略ID")
    private Long policyId;

    /** 策略ID */
    @Excel(name = "命令模板")
    private Long templatesId;

    public String getPolicyName() {
        return policyName;
    }

    public void setPolicyName(String policyName) {
        this.policyName = policyName;
    }

    private String policyName;

    public String getTemplatesName() {
        return templatesName;
    }

    public void setTemplatesName(String templatesName) {
        this.templatesName = templatesName;
    }

    private String templatesName;

    /** 用户新密码 */
    @Excel(name = "用户新密码")
    private String newUserPass;

    /** 公告状态（0正常 1关闭） */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=关闭")
    private String status;

    /** 执行状态（0正常 1关闭） */
    @Excel(name = "执行状态", readConverterExp = "0=未执行,1=执行成功,2=执行失败")
    private String exeStatus;


    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId()
    {
        return userId;
    }
    public void setHostId(Integer hostPort)
    {
        this.hostPort = hostPort;
    }

    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName()
    {
        return taskName;
    }

    public void setHostName(String hostName)
    {
        this.hostName = hostName;
    }

    public String getHostName()
    {
        return hostName;
    }
    public Integer getHostPort()
    {
        return hostPort;
    }
    public void setHostIp(String hostIp)
    {
        this.hostIp = hostIp;
    }

    public String getHostIp()
    {
        return hostIp;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setUserPass(String userPass)
    {
        this.userPass = userPass;
    }

    public String getUserPass()
    {
        return userPass;
    }
    public void setPolicyId(Long policyId)
    {
        this.policyId = policyId;
    }

    public Long getPolicyId()
    {
        return policyId;
    }
    public void setTemplatesId(Long templatesId)
    {
        this.templatesId = templatesId;
    }

    public Long getTemplatesId()
    {
        return templatesId;
    }
    public void setNewUserPass(String newUserPass)
    {
        this.newUserPass = newUserPass;
    }

    public String getNewUserPass()
    {
        return newUserPass;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setExeStatus(String exeStatus)
    {
        this.exeStatus = exeStatus;
    }

    public String getExeStatus()
    {
        return exeStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("taskName", getTaskName())
                .append("hostName", getHostName())
                .append("hostId", getHostPort())
                .append("hostIp", getHostIp())
                .append("userName", getUserName())
                .append("userPass", getUserPass())
                .append("templatesId", getPolicyId())
                .append("templatesName", getTemplatesName())
                .append("policyId", getTemplatesId())
                .append("policyName", getPolicyName())
                .append("newUserPass", getNewUserPass())
                .append("status", getStatus())
                .append("exeStatus", getExeStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
